﻿using SingleUserMall.EntityFramework;
using SingleUserMall.Stores;
using System;
using System.Collections.Generic;
using System.Linq;
using SingleUserMall.Authorization.Users;

namespace SingleUserMall.Migrations.SeedData
{
    class DefaultStoresCreator
    {
        private readonly SingleUserMallDbContext _context;

        public DefaultStoresCreator(SingleUserMallDbContext context)
        {
            _context = context;
        }

        public void Create()
        {
            CreateStores();
        }

        private void CreateStores()
        {
            User adminUser = _context.Users.FirstOrDefault(u => u.UserName == User.AdminUserName);
            if(adminUser != null)
            {
            }
        }
    }
}
